import {get, post} from '@/request/useRequest'
import {GridParams, ResponseBody} from '@/api/typing';
import { Role } from '@/api/system/core/typing';

export async function getSameLevel(): Promise<ResponseBody<ResponseBody>> {
  return get('role/getSameLevel');
}
export async function list(params: GridParams): Promise<ResponseBody> {
  return get('role/list', params);
}
export async function exists(params: object): Promise<ResponseBody> {
  return get('role/exists', params);
}
export async function upsert(params: object): Promise<ResponseBody> {
  return post('role/upsert', params);
}
export async function deletes(params: []): Promise<ResponseBody> {
  return post('role/deletes', params);
}
